import React from 'react';
import {Router,Route,NavLink,Switch,Redirect} from 'dva/router';
//import APP from '../App'
import Login from '../pages/login/index'
import Home from '../pages/home/index'
const TeacherList = ()=><h1>您好</h1>

let fn = function({history,app}){
    return(
        <Router history={history}>
            <React.Fragment>
                <Switch>
                <Route path='/home' component={Home} >
                </Route>
                <Route path='/login' exact component={Login}></Route>
                <Redirect to='/home'></Redirect>
                </Switch>
            </React.Fragment>
        </Router>
    )
}
export default fn;